﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate;
using SAKS.Models;


namespace SAKS.IServices
{
    public interface IRoleServices : IHasSession
    {
        void AddUsersToRoles(string[] userNames, string[] roleNames);
        void RemoveUsersFromRoles(string[] userNames, string[] roleNames);
        void AddUserToRole(string userName, string roleName);

        IList<string> FindUsersInRole(string roleName, string usernameToMatch);
        IList<string> GetAllRoles();
        IList<string> GetRolesForUser(string userName);
        IList<string> GetUsersInRole(string roleName);

        bool IsUserInRole(string userName, string roleName);
        bool RoleExists(string roleName);
    }
}
